<?php

namespace App\Http\Controllers;

use App\Http\Services\GitService;
use App\Http\Services\MsgService;
use Illuminate\Http\Request;

class GitController extends Controller
{
    /**
     *代码提交次数统计
     * @author lican<364548233@qq.com>
     */
    public function submission(Request $request){
        //type 1:日  2：周  3：月
        $type = $request->input('type') ?? 1;
        $data = GitService::submission($type);
        return MsgService::getMsg(0, $data);
    }

}
